import request from '@/utils/request'

// 查询仓储煤种信息列表
export function listWarehouseCoal(query) {
  return request({
    url: '/basicInfo/warehouseCoal/list',
    method: 'get',
    params: query
  })
}

// 查询仓储煤种信息详细
export function getWarehouseCoal(id) {
  return request({
    url: '/basicInfo/warehouseCoal/' + id,
    method: 'get'
  })
}

// 新增仓储煤种信息
export function addWarehouseCoal(data) {
  return request({
    url: '/basicInfo/warehouseCoal',
    method: 'post',
    data: data
  })
}

// 修改仓储煤种信息
export function updateWarehouseCoal(data) {
  return request({
    url: '/basicInfo/warehouseCoal',
    method: 'put',
    data: data
  })
}

// 删除仓储煤种信息
export function delWarehouseCoal(id) {
  return request({
    url: '/basicInfo/warehouseCoal/' + id,
    method: 'delete'
  })
}
